﻿@page "/bluetoothheartrates"
@namespace BootstrapBlazor.Shared.Samples
@inject IStringLocalizer<Bluetooths> Localizer

<h4>@Localizer["Title2"]</h4>

<DemoBlock Title="@Localizer["BaseUsageText"]" Introduction="@Localizer["BaseUsageIntro2"]" Name="Nomal">
    <button class="btn btn-outline-primary" @onclick="GetHeartrate ">@Localizer["GetHeartrateButtonText"]</button>
    <button class="btn btn-outline-danger" @onclick="StopHeartrate ">@Localizer["StopHeartrateButtonText"]</button>
    <Heartrate @ref="heartrate" OnUpdateValue="OnUpdateValue" OnUpdateStatus="OnUpdateStatus" OnUpdateError="OnError" />
    <h2 style="color:red" data-action="heartrate" />
    <pre>@message</pre>
    <pre style="color:green">@statusmessage</pre>
    <pre style="color:red">@errmessage</pre>
</DemoBlock>
